package com.xingxue.shopping.model.persist;

import java.util.Date;

public class comment {

	
	 private Integer commentid;
	 private String content;
	 private String title;
	 private Integer  userid;
	 private Integer producerid;
	 private Date commenttime;
	public Integer getCommentid() {
		return commentid;
	}
	public void setCommentid(Integer commentid) {
		this.commentid = commentid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public Integer getProducerid() {
		return producerid;
	}
	public void setProducerid(Integer producerid) {
		this.producerid = producerid;
	}
	public Date getCommenttime() {
		return commenttime;
	}
	public void setCommenttime(Date commenttime) {
		this.commenttime = commenttime;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((commentid == null) ? 0 : commentid.hashCode());
		result = prime * result + ((commenttime == null) ? 0 : commenttime.hashCode());
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((producerid == null) ? 0 : producerid.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + ((userid == null) ? 0 : userid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		comment other = (comment) obj;
		if (commentid == null) {
			if (other.commentid != null)
				return false;
		} else if (!commentid.equals(other.commentid))
			return false;
		if (commenttime == null) {
			if (other.commenttime != null)
				return false;
		} else if (!commenttime.equals(other.commenttime))
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (producerid == null) {
			if (other.producerid != null)
				return false;
		} else if (!producerid.equals(other.producerid))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (userid == null) {
			if (other.userid != null)
				return false;
		} else if (!userid.equals(other.userid))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "comment [commentid=" + commentid + ", content=" + content + ", title=" + title + ", userid=" + userid
				+ ", producerid=" + producerid + ", commenttime=" + commenttime + "]";
	}
	 
	 
}
